<h1>Side Boxes</h1>

<br/>
	<table>
		<% for sidebox in @sideboxes %>
			<tr>
				<td>
					<div id ="feature-box" OnClick="javascript: location.href('<%= sidebox.url %>')">
						<% for word in sidebox.title.split(/[^a-zA-Z]/) %>
							<h1><a href='<%= sidebox.url %>'><%= word %></a></h1>
						<% end %>
						<img padding=5px src="../images/van.jpg"/>
						<p><%= sidebox.blurb %></p>
					</div>	
				</td>
				<td><%= link_to 'Edit', :action => 'edit', :id => sidebox.id %> |
					<%= link_to 'Delete', sidebox, :confirm => 'Are you sure?', :method => :delete %></li></td>
			</tr>					 
		<% end%>
	</table>